/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package plar;

/**
 *
 * @author spok
 */
public class Key {

public boolean up;
public boolean down;
public boolean left;
public boolean right;
public boolean fire;
public boolean jump;
public boolean special;

 public int KEY;
         
   public Key()
   {

   }
   
   public String toString()
   {
       String str=new String();
       if(up) str+="u,";
       if(down) str+="d,";
       if(left) str+="l,";
       if(right) str+="r,";
       if(fire) str+="f,";
       if(jump) str+="j,";
       if(special) str+="s,";
       
       str =  str.substring(0, str.length()-1);
       return str;
   }

}
